package com.ruoyi.vehicleDispatch.mapper;

import java.util.List;
import com.ruoyi.vehicleDispatch.domain.TimeThresholdRule;

/**
 * 时间阈值规则Mapper接口
 * 
 * @author niuyi
 * @date 2025-08-19
 */
public interface TimeThresholdRuleMapper 
{
    /**
     * 查询时间阈值规则
     * 
     * @param ruleId 时间阈值规则主键
     * @return 时间阈值规则
     */
    public TimeThresholdRule selectTimeThresholdRuleByRuleId(Integer ruleId);

    /**
     * 查询时间阈值规则列表
     * 
     * @param timeThresholdRule 时间阈值规则
     * @return 时间阈值规则集合
     */
    public List<TimeThresholdRule> selectTimeThresholdRuleList(TimeThresholdRule timeThresholdRule);

    /**
     * 新增时间阈值规则
     * 
     * @param timeThresholdRule 时间阈值规则
     * @return 结果
     */
    public int insertTimeThresholdRule(TimeThresholdRule timeThresholdRule);

    /**
     * 修改时间阈值规则
     * 
     * @param timeThresholdRule 时间阈值规则
     * @return 结果
     */
    public int updateTimeThresholdRule(TimeThresholdRule timeThresholdRule);

    /**
     * 删除时间阈值规则
     * 
     * @param ruleId 时间阈值规则主键
     * @return 结果
     */
    public int deleteTimeThresholdRuleByRuleId(Integer ruleId);

    /**
     * 批量删除时间阈值规则
     * 
     * @param ruleIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTimeThresholdRuleByRuleIds(Integer[] ruleIds);
}
